package com.xc.freeapp.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.xc.freeapp.entity.Relation;
import com.xc.freeapp.request.bean.RelationAndIssue;

public interface RelationService {
	
	public int deleteByPrimaryKey(Integer id);

    public int insert(Relation record);


    public  Relation selectByPrimaryKey(Integer id);


    public int updateByPrimaryKey(Relation record);
    
    /**
	 * 根据组标识获取关系列表
	 * */
    public List<Relation> getList(Map<String, Object> map,PageBounds pageBounds);
    
    /**
	 * 保存关系以及就诊记录
	 */
    public Map saveRelationAndIssue(RelationAndIssue relationAndIssue,String userid);
}
